# app/utils/status_code.py
class StatusCode:
    """状态码常量类"""

    # 成功
    SUCCESS = 200

    # 客户端错误
    BAD_REQUEST = 400
    UNAUTHORIZED = 401
    FORBIDDEN = 403
    NOT_FOUND = 404
    METHOD_NOT_ALLOWED = 405

    # 服务器错误
    INTERNAL_SERVER_ERROR = 500
    SERVICE_UNAVAILABLE = 503

    # 业务错误码 (可根据需要扩展)
    VALIDATION_ERROR = 422
    BUSINESS_ERROR = 1000
    DATABASE_ERROR = 1001
    NETWORK_ERROR = 1002